using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using SoapValidation;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[AssertNamespaceBinding("t", "http://tempuri.org/")]
public class Service : System.Web.Services.WebService
{
	public Service()
	{

		//Uncomment the following line if using designed components 
		//InitializeComponent(); 
	}

	[WebMethod]
	[Validation]
	public string HelloWorld()
	{
		return "Hello World";
	}

	[WebMethod]
	[Validation]
	[Assert("//t:x > 10", "x greater then 10")]
	[Assert("//t:y < 100", "y less then 100")]
	public string Tester1(int x, int y)
	{
		return "Calling tester1!";
	}

}
